Automatic Program Repair with Condition Synthesis and Compound Mutations
نویسندگان
چکیده
We present PCR, a new automatic patch generation system. PCR uses a new condition synthesis technique to efficiently discover logical expressions that generate desired controlflow transfer patterns. Presented with a set of test cases, PCR deploys condition synthesis to find and repair incorrect if conditions that cause the application to produce the wrong result for one or more of the test cases. PCR also leverages condition synthesis to obtain a set of compound modifications that generate a rich, productive, and tractable search space of candidate patches. We evaluate PCR on a set of 105 defects from the GenProg benchmark set. For 40 of these defects, PCR generates plausible patches (patches that generate correct outputs for all inputs in the test suite used to validate the patch). For 12 of these defects, PCR generates correct patches that are functionally equivalent to developer patches that appear in subsequent versions. For comparison purposes, GenProg generates plausible patches for only 18 defects and correct patches for only 2 defects. AE generates plausible patches for only 27 defects and correct patches for only 3 defects.
منابع مشابه
Staged Program Repair in SPR
We present SPR, a new program repair system that uses condition synthesis to instantiate transformation schemas to repair program defects. SPR’s staged repair strategy combines a rich space of potential repairs with a targeted search algorithm that makes this space viably searchable in practice. This strategy enables SPR to successfully find correct program repairs within a space that contains ...
متن کاملSynthesis and Trapping of 3,4,3',4'-Tetradehydrobiphenyl (Bisbenzyne)
3,3'-Dicarboxy-4,4'-diaminobiphenyl was synthesized from Onitrobenzoic acid following standard procedures. Diazotization of this compound with isoamylnitrite, under approtic condition gave diphenyl-4,4'-bis-diazonium-3,3'-dicarboxylate and subsequent thermal decomposition of this diazonium compound produced 3,4,3',4'-tetradehydrobiphenyl (bisbenzyne) as a reactive intermediate. Bisbenzyne w...
متن کاملAutomatic Repair of Infinite Loops
Research on automatic software repair is concerned with the development of systems that automatically detect and repair bugs. One well-known class of bugs is the infinite loop. Every computer programmer or user has, at least once, experienced this type of bug. We state the problem of repairing infinite loops in the context of test-suite based software repair: given a test suite with at least on...
متن کاملSynthesis, characterization, theoretical calculations and biological studies of nano Sodium tetrafluoroborate (III)
Synthesis, characterization, spectral and theoretical calculations of sodium tetrafluoroborate (III) (STFB) has been studied in this research. Sodium tetrafluoroborate (III) was synthesized by a sonochemical method and characterized by IR, UV/VIS, 11B-NMR and Mass spectrometer techniques. The nano compound was characterized by scanning electron microscopy (SEM), X-ray powder diffract...
متن کاملSynthesis, characterization, theoretical calculations and biological studies of nano Sodium tetrafluoroborate (III)
Synthesis, characterization, spectral and theoretical calculations of sodium tetrafluoroborate (III) (STFB) has been studied in this research. Sodium tetrafluoroborate (III) was synthesized by a sonochemical method and characterized by IR, UV/VIS, 11B-NMR and Mass spectrometer techniques. The nano compound was characterized by scanning electron microscopy (SEM), X-ray powder diffract...
متن کامل